<?php
if(isset($_POST['submit']))
{
$url = $_POST['url'];
$title = $_POST['title'];
$content = $_POST['content'];
$code = $_POST['code'];
if ($code=="69")
{ 
$title2 = substr($title,0,160);
$content2 = substr($content,0,10000);
$conten = $content2.".. | Source: ".$url;
$name = substr($title2,0,5);
$headers = "";
mail(' 	
jobcopas.success.2000@blogger.com ', $title2, $conten,$headers);
echo "<p><b>Articles Successfully Posted.</b></p>";
echo "<p>It took a while for your article appears. Please
<a href=\"http://jobcopas-success.blogspot.com/\" target=\"_blank\">click here</a> 
to see your article.</p>";
}
else
{ echo "<b>Wrong answer!</b>";}


}
?>
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<table cellpadding="5">
<tr>
<td>
URL
</td>
<td>
<input type="text" size="25" name="url">
</td>
</tr>
<tr>
<td>
Title
</td>
<td>
<input type="text" size="25" name="title">
</td>
</tr>
<tr>
<td>
Article Content (not support HTML)
</td>
<td>
<textarea cols="20" rows="13" name="content"></textarea>
</td>
</tr>
<tr>
<td>
Security
</td>
<td>
46 + 23 = ...?
</td>
</tr>
<tr>
<td>
Answer
</td>
<td>
<input type="text" size="25" name="code">
</td>
</tr>
<tr>
<td>

</td>
<td>
<input type="submit" name="submit" value="Send Article">
</td>
</tr>
</table>
</form>